//
//  PVDsCreateJobView.swift
//  GreenDeal
//
//  Created by Moennig Q on 2023/4/26.
//

import UIKit
import SnapKit
class PVDsCreateJobView: View {
    let createJobBtn = OperationButton(R.string.localizable.createJob())
    override func setUpView() {
        self.backgroundColor = .white
        let backView = View()
        backView.backgroundColor = .clear
        self.addSubview(backView)
        backView.snp.makeConstraints { make in
            make.center.equalToSuperview()
            make.width.height.greaterThanOrEqualTo(0)
        }
        let imageView = UIImageView(image: R.image.installation_list_createjob_icon())
        backView.addSubview(imageView)
        imageView.snp.makeConstraints { make in
            make.top.equalToSuperview()
            make.left.right.equalToSuperview()
            make.width.equalTo(231)
            make.height.equalTo(147)
        }
        //
        let descripLabel = ContentLabel(R.font.interBold(size: 18))
        descripLabel.text = R.string.localizable.startYourFirstJobHere()
        backView.addSubview(descripLabel)
        descripLabel.snp.makeConstraints { make in
            make.top.equalTo(imageView.snp.bottom).offset(24)
            make.width.height.greaterThanOrEqualTo(0)
            make.centerX.equalToSuperview()
        }
        //
        backView.addSubview(createJobBtn)
        createJobBtn.snp.makeConstraints { make in
            make.top.equalTo(descripLabel.snp.bottom).offset(40)
            make.width.equalTo(172)
            make.height.equalTo(OperationButton.height)
            make.centerX.bottom.equalToSuperview()
        }
    }

}
